public with sharing class OnwerRightHandler{

    public static Map<String ,String> isHaveRight(List<Account> aList){
       
       Map<String ,String> msg = new Map<String ,String>();
       		//update alist;
          Database.SaveResult[] results = Database.update(alist, false);
           for(Database.SaveResult rs : results){
               System.debug('报错'+rs.getErrors());
				if (rs.getErrors().size() > 0 && String.valueOf(rs.getErrors()[0].getStatusCode()) == 'INSUFFICIENT_ACCESS_OR_READONLY'){
            		System.debug(rs);
                    msg.put('success','false');
                    msg.put('msg',rs.getId());
                    //System.debug('权限判断' + msg);

                    return msg;
           	 	}
           }
		 	      	msg.put('success','true');
                    msg.put('msg','success');
                    msg.put('msg','success');
        		 	      	msg.put('success','true');

       			 //System.debug('权限判断' + msg);
            return msg;
       
    }
}